package com.spzx.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.api.domain.Category;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface CategoryService extends IService<Category> {
    List<Category> listByPid(Long pid);

    boolean checkHasChildById(Long id);

    void exportCates(HttpServletResponse response);

    boolean importCates(MultipartFile file);

    boolean cateExit(Category category);

    List<Category> listCatesTree();
}
